/*
@ClassName SuccessResult
@Description TODO
@Author SubUp
@Date   2023/4/24
@Version 1.0
*/

package com.example.javaserve.result.impl;




import com.example.javaserve.enums.ResultEnum;
import com.example.javaserve.result.Result;

import java.util.List;

public class SuccessResult<T> extends Result<T> {
    public SuccessResult(){
        super(ResultEnum.SUCCESS.getCode(),ResultEnum.SUCCESS.getValue());
    }
    
    public SuccessResult(String message) {
        super(ResultEnum.SUCCESS.getCode(),message);
    }
    
    public SuccessResult(Integer code,String message) {
        super(code,message);
    }
    public SuccessResult(String message,List<T> data) {
        super(ResultEnum.SUCCESS.getCode(),message,data);
    }

    public SuccessResult(Integer code, String message, List<T> data){
        super(code,message,data);
    }
    
    public SuccessResult(List<T> data){
        super(ResultEnum.SUCCESS.getCode(),ResultEnum.SUCCESS.getValue(),data);
    }
}
